package com.lxs.travel.core.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lxs.travel.core.dao.ICrudDao;
import com.lxs.travel.core.po.BaseEntity;
import com.lxs.travel.core.service.ICrudService;

public class CrudServiceImpl<T extends BaseEntity> extends ServiceImpl<ICrudDao<T>, T> implements ICrudService<T> {

    @Override
    public IPage<T> listPage(IPage<T> page, T entity) {
        return baseMapper.selectByPage(page, entity);
    }

}
